import Vue from 'vue'
import App from './App.vue'
import Navtype from "@comp/Navtype"
//引入router对象
import router from "@/router"
//引入axios
// import { request } from "@/utils/http";
//引入vuex 
import store from "@/store";

//把mock引入项目 让mockServer执行
import "@/mock/mockServer";

Vue.config.productionTip = false

//注册全局组件
Vue.component("Navtype",Navtype)
new Vue({
  render: h => h(App),
  router,
  //把store注册到实例上,那么所有的组件实例都可以访问$store对象
   store,
}).$mount('#app')


